from pypinyin import lazy_pinyin


def TrPinyin(str_ch):
    # 获取拼音列表['cong', 'ming', 'de', 'xiao', 'tu', 'zi']
    pinyin_list = lazy_pinyin(str_ch)
    # 将列表内容重新拼接成邮箱账号所需字符串
    account_str = ''.join(pinyin_list[1:]) + '.' + ''.join(pinyin_list[0])
    return account_str

if __name__ == '__main__':
    print(TrPinyin('俞险峰'))